package com.nondo.rdp.stock.service;

import com.nondo.rdp.auth.domain.User;
import com.nondo.rdp.auth.endpoint.model.Page;
import com.nondo.rdp.stock.domain.StockChoose;

public interface StockChooseService {
    /**
     * 保存模拟炒股
     *
     * @param stockChoose
     */
    StockChoose save(StockChoose stockChoose);

    /**
     * 根据主键ID删除模拟炒股
     *
     * @param id
     */
    void delete(Long id);

    /**
     * 根据主键更新模拟炒股
     *
     * @param stockChoose
     */
    void update(StockChoose stockChoose);

    /**
     * 根据主键ID查询模拟炒股
     *
     * @param id
     * @return
     */
    StockChoose findOne(Long id);

    /**
     * 分页查询模拟炒股列表
     *
     * @param page
     * @param stockChoose
     * @return
     */
    Page<StockChoose> findAll(Page<StockChoose> page, StockChoose stockChoose);

    StockChoose findByUser(User user);

    StockChoose findByUserAndCode(User user, String code);
}
